﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using Sector7.Framework.Core;
using Sector7.Framework.EntityType;
using Sector7.Framework.Enums;

namespace Sector7.Medical.EntityType
{
    /// <summary>
    /// 病人实体类
    /// </summary>
    [Serializable()]
    [DataContract]
    public class M7_Patient : S7_Citizen
    {
        #region Accessor
        /// <summary>
        /// 获取或设置病人编号
        /// </summary>
        [DataMember]
        [DBFieldAttribute(DBFieldType.PrimaryKey)]
        public long PatientId { get; set; }

        /// <summary>
        /// 获取或设置健康卡编号
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string HealthCardId { get; set; }

        /// <summary>
        /// 获取或设置是否有过敏史
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public bool IsAllergy { get; set; }

        /// <summary>
        /// 获取或设置过敏源编码(CV05.01.038)
        /// </summary>
        [DataMember]
        [DBFieldAttribute]
        public string AnaphylactogenId { get; set; }

        /// <summary>
        /// 获取或设置建立日期
        /// </summary>
        [DataMember]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 获取或设置获取性别对象
        /// </summary>
        [DataMember]
        public M7_Gender Gender { get; set; }
        #endregion
    }
}
